package com.kattomy.ssh.dao.impl;

import java.util.List;

import com.kattomy.ssh.dao.BaseDao;
import com.kattomy.ssh.dao.DepartmentDao;
import com.kattomy.ssh.entities.Department;

public class DepartmentDaoImpl extends BaseDao implements DepartmentDao {

	@Override
	public List<Department> getAll() {
		
		String hql = "FROM Department";
		
		return getSession().createQuery(hql).list();
	}
	
}
